﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewControl.ascx.cs" Inherits="MyControl" %>
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" Width="192px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
    <asp:ListItem>Select</asp:ListItem>
    <asp:ListItem>Panel1</asp:ListItem>
    <asp:ListItem>Panel2</asp:ListItem>
    <asp:ListItem>Panel3</asp:ListItem>
</asp:DropDownList>
<asp:MultiView ID="MultiView1" runat="server">
    <asp:View ID="View1" runat="server">
        <asp:Panel ID="Panel1" runat="server" BackColor="#6699FF" Height="137px">
            <asp:Label ID="Label1" runat="server" Text="Panel 1"></asp:Label>
        </asp:Panel>
    </asp:View>
    <asp:View ID="View2" runat="server">
        <asp:Panel ID="Panel2" runat="server" BackColor="Lime" Height="133px">
            <asp:Label ID="Label2" runat="server" Text="Panel 2"></asp:Label>
        </asp:Panel>
    </asp:View>

    <asp:View ID="View3" runat="server">
        <asp:Panel ID="Panel3" runat="server" BackColor="#999999" Height="116px">
            <asp:Label ID="Label3" runat="server" Text="Panel 3"></asp:Label>
        </asp:Panel>
    </asp:View>
</asp:MultiView>

